from django.conf.urls import url

from . import views


urlpatterns = [
    # 获取商品列表路由
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view(), name='list'),
    # 获取热销商品路由
    url(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view()),
    # 商品详情页路由
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(), name='detail'),
    # 统计商品访问量路由
    url(r'^detail/visit/(?P<category_id>\d+)/$', views.DetailCountView.as_view())
]
